<div class="sidebar" id="sidebar">
	
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
	</script>
	
	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success" onclick="location.href='index.php'">
				<i class="icon-dashboard"></i>
			</button>
			<button class="btn btn-info" onclick="location.href='<?php echo Yii::app()->createUrl('contract/list')?>'">
				<i class="icon-desktop"></i>
			</button>
			<button class="btn btn-danger" onclick="location.href='<?php echo Yii::app()->createUrl('event/list')?>'">
				<i class="icon-list"></i>
			</button>
			<button class="btn btn-warning" onclick="location.href='<?php echo Yii::app()->createUrl('cover/list')?>'">
				<i class="icon-list-alt"></i>
			</button>
		</div>
		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span>
			<span class="btn btn-info"></span>
			<span class="btn btn-danger"></span>
			<span class="btn btn-warning"></span>
		</div>
	</div>
	<ul class="nav nav-list">
		<li<?php if(Yii::app()->controller->id == "site"){?> class="active"<?php }?>>
		<a href="<?php echo Yii::app()->request->baseUrl?>">
			<i class="icon-dashboard"></i>
			<span class="menu-text"> Bảng điều khiển </span>
		</a>
		</li>
		<li<?php if(Yii::app()->controller->id == "contract"){?> class="active"<?php }?>>
		<a href="#" class="dropdown-toggle">
			<i class="icon-desktop"></i>
			<span class="menu-text"> Hợp đồng </span>

			<b class="arrow icon-angle-down"></b>
		</a>

		<ul class="submenu">
			<li<?php if(Yii::app()->controller->action->id == "create" && Yii::app()->controller->id == "contract"){?> class="active"<?php }?>>
			<a href="<?php echo Yii::app()->createUrl('contract/create')?>">
				<i class="icon-double-angle-right"></i>
				Nhập hợp đồng mới
			</a>
			</li>

			<li<?php if(Yii::app()->controller->action->id == "list" && Yii::app()->controller->id == "contract"){?> class="active"<?php }?>>
			<a href="<?php echo Yii::app()->createUrl('contract/index')?>">
				<i class="icon-double-angle-right"></i>
				Quản lý hợp đồng
			</a>
			</li>

			<li<?php if(Yii::app()->controller->action->id == "statistic" && Yii::app()->controller->id == "contract"){?> class="active"<?php }?>>
			<a href="<?php echo Yii::app()->createUrl('contract/statistic')?>">
				<i class="icon-double-angle-right"></i>
				Thống kê
			</a>
			</li>
		</ul>
		</li>
		<li<?php if(Yii::app()->controller->id == "cover"){?> class="active"<?php }?>>
		<a href="#" class="dropdown-toggle">
			<i class="icon-list-alt"></i>
			<span class="menu-text"> In bìa </span>

			<b class="arrow icon-angle-down"></b>
		</a>

		<ul class="submenu">
			<li<?php if(Yii::app()->controller->action->id == "list" && Yii::app()->controller->id == "cover"){?> class="active"<?php }?>>
			<a href="<?php echo Yii::app()->createUrl('cover/list')?>">
				<i class="icon-double-angle-right"></i>
				Danh sách in bìa
			</a>
			</li>

			<li<?php if(Yii::app()->controller->action->id == "history" && Yii::app()->controller->id == "cover"){?> class="active"<?php }?>>
			<a href="<?php echo Yii::app()->createUrl('contract/history')?>">
				<i class="icon-double-angle-right"></i>
				Lịch sử in
			</a>
			</li>
		</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-tag"></i>
				<span class="menu-text"> Cá nhân </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo Yii::app()->createUrl('user/changeInfo')?>">
						<i class="icon-double-angle-right"></i>
						Thông tin tài khoản
					</a>
				</li>

				<li>
					<a href="<?php echo Yii::app()->createUrl('user/changePassword')?>">
						<i class="icon-double-angle-right"></i>
						Đổi mật khẩu
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-cogs"></i>

				<span class="menu-text">Cấu hình</span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="setting?do=member">
						<i class="icon-double-angle-right"></i>
						Thành viên
					</a>
				</li>

				<li>
					<a href="setting?do=about">
						<i class="icon-double-angle-right"></i>
						Giới thiệu
					</a>
				</li>
			</ul>
		</li>
	</ul><!-- /.nav-list -->

	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>
	
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
	</script>
	
</div>
